import axios from "axios";

import { Toast } from 'vant'

// axios.defaults.baseURL = 'http://itfly.vip'  //全局配置

const service = axios.create({
  baseURL: 'http://itfly.vip'
  // timeout:3000 //延迟时间

})
service.interceptors.response.use((response) => {
  // console.log(response);
  return response.data
}, err => {
  Toast("网络请求错误....")
  Promise.reject(err)
})
export default service